package org.asdmp.restday;
import org.jbpm.api.jpdl.DecisionHandler;
import org.jbpm.api.model.OpenExecution;

public class ProjectDecision implements DecisionHandler {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2L;


	public String decide(OpenExecution execution) {
		String action = execution.getVariable("action").toString();
		
		if(action.equals("approve")){
			return "toend";
		}else{
			return "toapplier";
		}
	}

}
